package com.huishu.user.service;

import com.huishu.commons.pojo.Result;
import com.huishu.user.pojo.dto.UserReceiveAddressDTO;
import com.huishu.user.pojo.model.UserReceiveAddressDO;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author generator@ljj
 * @since 2023-04-12
 */
public interface UserReceiveAddressService extends IService<UserReceiveAddressDO> {

    /**
     * 新增收货地址
     * @param userReceiveAddressDTO
     * @return
     */
    Result addOrUpdate(UserReceiveAddressDTO userReceiveAddressDTO);

    /**
     * 获取所有收货地址
     * @param currentUid
     * @return
     */
    Result findAll(Long currentUid);

    /**
     * 查询默认的地址
     * @param currentUid
     * @return
     */
    Result findDefault(Long currentUid);
}
